$(document).ready(function() {
    $("a.ancLinks").click(function () {
      elementClick = $(this).attr("href");
	  if (elementClick != "#footer") {
		$("#v1hbox4i").css("display", "block");
		$(elementClick+"i").css("display", "block");
	  }
      destination = $(elementClick).offset().top;
      if($.browser.safari){
        $('body').animate( { scrollTop: destination }, 410 );
      }else{
        $('html').animate( { scrollTop: destination }, 410 );
      }
      return false;
    });
  });
  

  